<?php
/**
 *
 */
namespace app\home\controller\address;

use app\home\controller\Base;
use think\Request;
class Api extends Base
{

	/**
	 * 个人地址
	 * @return [type] [description]
	 */
	public function address(){
		$data = model('MemberAddress')->memberAddress(UID);
        $data['code'] = 1;
		return json($data);
	}

	public function details(){
		$id = $this->request->param('id');
		$data = model('MemberAddress')->memberAddressFind($id);
		return json($data);
	}

    /**
     * [details 获取个人地址标题]
     * @return [type] [description]
     */
	public function addressTitle(){
		$data = model('MemberAddress')->memberAddress(UID,'title,id');
		return json($data);
	}

}